package Selenium;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

/**
 * created by zhangyuhang on 2018/7/12
 */
public class Demo {

    public static void main(String args[]){

        WebDriver webDriver = new ChromeDriver();
        webDriver.get("http://www.baidu.com");
        webDriver.findElement(By.id("kw")).click();
        webDriver.findElement(By.id("kw")).sendKeys("虎扑");
        webDriver.findElement(By.id("su")).click();
    }
}
